import { defineConfig } from 'vite'
import viteConfigLib from './vite.config.lib'
import viteConfigDoc from './vite.config.doc'

export default defineConfig(({ command, mode }) => {
    if (command == 'build' && mode == 'lib') {
        return viteConfigLib
    }
    return viteConfigDoc
})
